/*
 * @Author: wjc
 * @Date: 2025-09-17 16:18:24
 * @LastEditors: wjc
 * @LastEditTime: 2025-10-17 17:36:05
 * @Description:
 */
import type { RouteRecordRaw } from 'vue-router'

import { IFrameLayout } from '#/layouts'

const routes: RouteRecordRaw[] = [
  {
    name: 'NiceGuide',
    path: '/guide',
    meta: {
      icon: 'lucide:copyright',
      title: '规范',
      order: 9999,
    },
    children: [
      {
        name: 'Element Plus',
        path: '/guide/element-plus',
        component: () => import('#/views/guide/element-plus/index.vue'),
        meta: {
          affixTab: true,
          icon: 'carbon:workspace',
          title: 'Element Plus',
        },
      },
      {
        name: 'Document',
        path: '/guide/document',
        component: IFrameLayout,
        meta: {
          icon: 'https://wy.huiguanjia.cn/9ad134a361f8d778/file/images/936952704248143872',
          // iframeSrc: 'https://docs-hazel-zeta.vercel.app/',
          iframeSrc:
            'https://bafybeidltaekzz56pldba7eem4mwd7wdrdjzprxexjpn7tcwx5c5zvxbnu.pinme.dev',
          title: '开发规范',
          order: 9999,
          affixTab: true,
        },
      },
    ],
  },
]

export default routes
